package com.xujianlun.cpms.entity.shop;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 购物车 实体类
 * </p>
 *
 * @author xujianlun
 * @since 2022-12-14
 */
@Getter
@Setter
@TableName("shop_carts")
@ApiModel(value = "Carts对象", description = "")
public class Carts implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("购物车id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("商品ID")
    private Integer goodsId;

    @ApiModelProperty("用户ID")
    private Integer userId;

    @ApiModelProperty("购买数量")
    private Integer num;

    @ApiModelProperty("购买时间")
    private String time;

    @TableField(exist = false)
    private String goodsName;
    @TableField(exist = false)
    private String goodsImg;
    @TableField(exist = false)
    private BigDecimal price;
    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String nickName;
}
